//
//  UIApplication+AppDimentions.m
//  MFWSdk
//
//  Created by xiaofeng on 14/11/6.
//  Copyright (c) 2014年 Mafengwo Inc. All rights reserved.
//

#import "UIApplication+AppDimentions.h"

@implementation UIApplication (AppDimentions)

/**
 *  获取当前屏幕的size, 不同的orientation有不同size
 *
 *  @return size
 */
+ (CGSize)currentAppSize;
{
    return [UIApplication sharedApplication].keyWindow.rootViewController.view.bounds.size;
}

/**
 *  获取当前屏幕的宽度，@see([UIApplication currentAppSize])
 *
 *  @return 宽度
 */
+ (CGFloat)currentAppWidth;
{
    return [self currentAppSize].width;
}
@end
